const app = getApp();
Component({
    properties: {
        showUnLogin: { // 是否显示后退按钮
            type: String,
        },
    },
    data: {
        actions: [
            {
                name: '取消'
            }, {
                name: '现在去登陆',
                color: '#2d8cf0',
            }
        ],
    },
    methods: {
        handleClick3({detail}) {
            const index = detail.index;
            this.setData({showUnLogin: 'false'})
            if (index === 1) {
                wx.navigateTo({
                    url: '../login/login'
                });
            } else {
                wx.navigateBack({delta: 1})
            }
        },
    }
})